#!/usr/bin/env python
# encoding: utf-8
# @author: liusir
# @file: demo_10.py
# @time: 2022/11/27 9:10 AM

# from nb_log import LogManager
#
# logger = LogManager('api_test_log')\
#     .get_logger_and_add_handlers(is_add_stream_handler=True,
#                                  log_filename='test.log')
# logger.debug("debug")
# logger.info("info")
# logger.warning('warn')
# logger.error(" 程序异常，越界等 ")

import os
from nb_log import LogManager
from utlis.config_utils import local_config

print( os.name )
logger = LogManager('api_test_log')\
    .get_logger_and_add_handlers(is_add_stream_handler=True,
                                 log_filename=local_config.LOG_FILE_PATH)
logger.info('123456')

